package com.eric.similarity.cluster;

import java.io.IOException;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapreduce.Reducer;

public class HadoopClusterer {
	public static class TokenizerMapper extends Mapper<Object, Text, Text, Text> {
		public void map(Object key, Text value, Context context) throws IOException, InterruptedException {
			context.write(new Text(value.toString().split("=")[0]), new Text(value.toString().split("=")[1]));
		}
	}
	
	public static class IntSumReducer extends Reducer<Text,Text,Text,Text> {
		public void reduce(Text key, Iterable<Text> values,Context context) throws IOException, InterruptedException{
			
		}
	}
}
